export function checkLogin() {
  return localStorage.getItem('userStatus') === 'login';
}

export const logout = () => {
  localStorage.setItem('userStatus', 'logout');
  localStorage.removeItem('token_type');
  localStorage.removeItem('token');
  localStorage.removeItem('userName');
  localStorage.removeItem('enterpriseCode');
  window.location.hash = '/login';
};